# -*- coding: UTF-8 -*-
# 2023/12/1 17:05
import os

from win11toast import notify

from tools.get_icon import error


def show_toast(message: str, title: str = "Error", icon_path=error, **kwargs):
    """
    通知方法,处理完成时调用展示通知的图片
    """
    notify(title,
           message,
           icon=os.path.abspath(icon_path),
           **kwargs)
